<template>
  <div>
    <van-tabbar v-model="active" router>
      <van-tabbar-item icon="home-o" to="/index">首页</van-tabbar-item>
      <van-tabbar-item icon="search" >标签</van-tabbar-item>
      <van-tabbar-item icon="friends-o">标签</van-tabbar-item>
      <van-tabbar-item icon="setting-o" to="/my">我的</van-tabbar-item>
    </van-tabbar>
  </div>
  <div>
    <router-view></router-view>
  </div>
  <h4>测试</h4>
</template>

<script setup>
import {ref} from 'vue'
const active=ref(0)
</script>
<style scoped>

</style>
